// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.FBAInvoice;
import com.fowo.api.model.fbainvoice.FBAInvoiceItemVo;
import com.fowo.api.model.fbainvoice.FBAInvoiceSearchParamPo;
import com.fowo.api.model.fbainvoice.FBAInvoiceVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FBAInvoiceMapper extends BaseMapper<FBAInvoice> {
  Page<FBAInvoiceItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") FBAInvoiceSearchParamPo search
  );
  List<OptionItem<FBAInvoiceItemVo>> searchOptions(
    @Param("search") FBAInvoiceSearchParamPo search
  );
  List<FBAInvoiceItemVo> search(
    @Param("search") FBAInvoiceSearchParamPo search
  );
  Date searchLastUpdateTime(@Param("search") FBAInvoiceSearchParamPo search);
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") FBAInvoiceSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") FBAInvoiceSearchParamPo search);
  Long getIdByLogisticsProvider(
    @Param("logisticsProvider") String logisticsProvider
  );

  List<Long> getIdsByLogisticsProvider(@Param("list") List<String> list);

  String getLogisticsProviderById(@Param("id") Long id);

  List<Map<String, Object>> getLogisticsProviderByIds(
    @Param("ids") List<Long> ids
  );
  FBAInvoiceVo selectVoById(@Param("id") Long id);
  /** 更新指定对象的所有计算字段值 */
  int updateCalcFields(Long id);
  /**
   * 全部
   */
  List<FBAInvoiceItemVo> fBAInvoiceAllView(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> fBAInvoiceAllViewIds(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取全部的总数
   */
  Long fBAInvoiceAllViewCount(@Param("search") FBAInvoiceSearchParamPo search);

  /**
   * 全部分页
   */
  Page<FBAInvoiceItemVo> fBAInvoiceAllViewPage(
    @Param("page") Page page,
    @Param("search") FBAInvoiceSearchParamPo search
  );
  Date fBAInvoiceAllViewLastUpdateTime(
    @Param("search") FBAInvoiceSearchParamPo search
  );
  /**
   * 待配货
   */
  List<FBAInvoiceItemVo> fBAInvoiceDistributedView(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取待配货编号列表
   */
  List<Long> fBAInvoiceDistributedViewIds(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取待配货的总数
   */
  Long fBAInvoiceDistributedViewCount(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 待配货分页
   */
  Page<FBAInvoiceItemVo> fBAInvoiceDistributedViewPage(
    @Param("page") Page page,
    @Param("search") FBAInvoiceSearchParamPo search
  );
  Date fBAInvoiceDistributedViewLastUpdateTime(
    @Param("search") FBAInvoiceSearchParamPo search
  );
  /**
   * 待发货
   */
  List<FBAInvoiceItemVo> fBAInvoiceSendView(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取待发货编号列表
   */
  List<Long> fBAInvoiceSendViewIds(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取待发货的总数
   */
  Long fBAInvoiceSendViewCount(@Param("search") FBAInvoiceSearchParamPo search);

  /**
   * 待发货分页
   */
  Page<FBAInvoiceItemVo> fBAInvoiceSendViewPage(
    @Param("page") Page page,
    @Param("search") FBAInvoiceSearchParamPo search
  );
  Date fBAInvoiceSendViewLastUpdateTime(
    @Param("search") FBAInvoiceSearchParamPo search
  );
  /**
   * 已发货
   */
  List<FBAInvoiceItemVo> fBAInvoiceHasSendView(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取已发货编号列表
   */
  List<Long> fBAInvoiceHasSendViewIds(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取已发货的总数
   */
  Long fBAInvoiceHasSendViewCount(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 已发货分页
   */
  Page<FBAInvoiceItemVo> fBAInvoiceHasSendViewPage(
    @Param("page") Page page,
    @Param("search") FBAInvoiceSearchParamPo search
  );
  Date fBAInvoiceHasSendViewLastUpdateTime(
    @Param("search") FBAInvoiceSearchParamPo search
  );
  /**
   * 已作废
   */
  List<FBAInvoiceItemVo> fBAInvoiceCancelView(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取已作废编号列表
   */
  List<Long> fBAInvoiceCancelViewIds(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 获取已作废的总数
   */
  Long fBAInvoiceCancelViewCount(
    @Param("search") FBAInvoiceSearchParamPo search
  );

  /**
   * 已作废分页
   */
  Page<FBAInvoiceItemVo> fBAInvoiceCancelViewPage(
    @Param("page") Page page,
    @Param("search") FBAInvoiceSearchParamPo search
  );
  Date fBAInvoiceCancelViewLastUpdateTime(
    @Param("search") FBAInvoiceSearchParamPo search
  );
}
